package chapter7;

/**
 * Created by lenovo on 2016/3/22.
 */
public class FlyingFish extends Fish implements Flyer {
    public FlyingFish(String name){
        super(name);
    }
    @Override
    public void swim(){
        System.out.printf("飞鱼游泳%n");
    }
    @Override
    public void fly(){
        System.out.printf("飞鱼会飞%n");
    }
}
